﻿<Page
    x:Class="SampleTileAnimation.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:SampleTileAnimation"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <Page.Resources>
        <Storyboard x:Name="myStoryboard">
            <DoubleAnimation
                        BeginTime="00:00:00"
                        Duration="0:0:2"
                        Storyboard.TargetName="ProjectionPlane"
                    AutoReverse="True"
                RepeatBehavior="Forever"
                        Storyboard.TargetProperty="RotationX"
                        To="90" />

        </Storyboard>
    </Page.Resources>
    <Grid Background="{StaticResource AppBarItemForegroundThemeBrush}">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="500"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="500"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="200"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="200"/>
            </Grid.RowDefinitions>
            <Image Source="../Assets/Arion.png" Grid.Row="1" Grid.Column="1" Tapped="PDTArionTappedEvent"  Stretch="UniformToFill" >

                <Image.Projection  >
                    <PlaneProjection x:Name="ProjectionPlane"  CenterOfRotationX="100"  />
                </Image.Projection>
            </Image>

        </Grid>
    </Grid>
</Page>
